package gorm

import (
	"github.com/jinzhu/gorm"
	"tyjt-ferry/internal/models/process"
	"tyjt-ferry/internal/models/system"
)

func AutoMigrate(db *gorm.DB) error {
	db.SingularTable(true)
	return db.AutoMigrate(
		process.Classify{},
		//process.Classify2{},

		system.Dept{},
	).Error
}
